package com.sakiko.integration.controller;

import com.sakiko.integration.service.ChatAssistant;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: com.sakiko.integration.controller
 *
 * @author: Yang
 * description: 高阶整合
 * time: 2025/8/17 13:19
 */
@RestController
public class DeclarativeAIServiceController {

    @Resource
    ChatAssistant chatAssistantKimi;

    @GetMapping("/boot/declarative")
    public String chat(@RequestParam(value = "prompt", defaultValue = "如何调用高德地图api?") String prompt) {
        return chatAssistantKimi.chat(prompt);
    }

}
